//
//  HXBottonFoodView.m
//  爱鲜蜂
//
//  Created by 洪东恒 on 16/4/15.
//  Copyright © 2016年 建国. All rights reserved.
//
#import "XMGInfiniteScrollView.h"
#import "HXBottonFoodView.h"
@interface HXBottonFoodView()
@property (weak, nonatomic) IBOutlet UIView *backgroundView;

@end

@implementation HXBottonFoodView

//加载的时候调用
-(void)awakeFromNib
{
    XMGInfiniteScrollView *scrollView = [[XMGInfiniteScrollView alloc]initWithFrame:CGRectMake(0, 0 , SCREEN_WIDTH, 150)];
    NSArray *imageArray = @[[UIImage imageNamed:@"1"] , [UIImage imageNamed:@"2"] ,[UIImage imageNamed:@"3"]];
    scrollView.images = imageArray ;
    [self.backgroundView addSubview:scrollView] ;
}

@end
